# nfs master
mkdir -pv /data/volumes/{v1,v2,v3}
cat <<EOF > /etc/exports
/data/volumes/v1  *(rw,no_root_squash,no_all_squash)
/data/volumes/v2  *(rw,no_root_squash,no_all_squash)
/data/volumes/v3  *(rw,no_root_squash,no_all_squash)
EOF
systemctl reload nfs
showmount -e
kubectl apply -f rbac.yaml
kubectl apply -f nfs-client.yaml
kubectl apply -f storageclass.yaml
kubectl apply -f test-claim.yaml

echo "gao kai : please change /etc/kubernetes/manifests/kube-apiserver.yaml"
echo "gao kai : look at https://blog.csdn.net/weixin_41806245/article/details/114368843"